package com._520it.crm.service;

import com._520it.crm.domain.Client;
import com._520it.crm.page.PageResult;
import com._520it.crm.query.QueryObject;

import java.util.List;

/**
 * Created by 呆 on 2017/10/3.
 */
public interface IClientService {
    int deleteByPrimaryKey(Long id);

    int insert(Client client);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client client);

    int updateByPrimaryClient(Client client);


    PageResult query(QueryObject qo);

    void selectClient(Client client,Long orderBillId);

    void saveRecognizee(Client client, Long orderBillId);

    Client selectApplyClient(Long id);

    Client selectRecognizee(Long id);

    Client selectCarOwner(Long id);

    /**
     * 潜在客户转为正式客户
     * */
    void changeFormalClientById(Long id);

    /**
     * 潜在客户转为资源池客户
     * */
    void changeSourceFormalClientById(Long id);

    /**
     * 联查员工表的数据结果
     * @param qo 条件
     * @return
     */
    PageResult employeeQuery(QueryObject qo);


}
